﻿using System.Data;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Logic;

namespace AiTool_Window
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        MainWindowLogic logic = new MainWindowLogic();
        public MainWindow()
        {
            InitializeComponent();
        }

        private void btnT2A_Click(object sender, RoutedEventArgs e)
        {
            this.frameMain.Navigate(new Uri("/Page/Text2Audio.xaml",UriKind.Relative));
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            InitMenu();
        }

        #region 加载菜单
        private void InitMenu()
        {
            //获取所有菜单
            DataTable menuTable = logic.getMenuList();

            

            for (int i = 0; i < menuTable.Rows.Count; i++)
            {
                MenuItem menuItem = new MenuItem();
            }


            //加载菜单
        }
        #endregion
    }
}